// Copyright@ChenChao


#include "UI/Widget/OverHeadStateGauge.h"

#include "GAS/CAttributeSet.h"
#include "UI/Widget/ValueGauge.h"

void UOverHeadStateGauge::ConfigWithASC(UAbilitySystemComponent* AbilitySystemComponent)
{
	if (AbilitySystemComponent)
	{
		//生命条绑定数据
		HealthBar->SetAndBoundToGameplayAttribute(AbilitySystemComponent,UCAttributeSet::GetHealthAttribute(),UCAttributeSet::GetMaxHealthAttribute());
		ManaBar->SetAndBoundToGameplayAttribute(AbilitySystemComponent,UCAttributeSet::GetManaAttribute(),UCAttributeSet::GetMaxManaAttribute());
	}
}
